package com.wsc.staticproxy.ver01;

import com.wsc.staticproxy.Movable;

import java.util.Random;

/**
 * 模拟坦克移动，并且记录时间
 * 以更改源码的方式记录移动时间
 */
public class Tank implements Movable {
    @Override
    public void move() {

        System.out.println("坦克正在移动..........");

        try {
            Thread.sleep(new Random().nextInt(1000));
        }catch (Exception e) {
            e.printStackTrace();
        }
    }

    public static void main(String[] args) {
        Tank tank = new Tank();
        tank.move();
    }
}
